#include<iostream>
#include<cmath>
using namespace std;
double a,b,c;
int main(){
	double x1,x2,dx,s;
	scanf("%lf %lf %lf",&a,&b,&c);
	dx=b*b-4*a*c;
	if(dx==0){
		x1=x2=-b/(2*a);
	}else if(dx>0){
		x1=(-b+sqrt(dx))/(2*a);
		x2=(-b-sqrt(dx))/(2*a);
	}else{
		s=-b/(2*a);
		x1=sqrt(-dx)/(2*a);
		printf("x1=%.3lf+%.3lfi x2=%.3lf-%.3lfi\n",s,x1,s,x1);
		return 0;
	}
	printf("x1=%lf x2=%lf\n",x1,x2);
	return 0;
}
